<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%@ taglib uri="/mytag" prefix="yjd"%>
<div class="wrap">
	<div class="nav">
		<ul class="cc">
			<li class="current"><a href='<yjd:url url="/adminlogin/list"/>'>登录记录</a></li>
			<li><a href='<yjd:url url="/adminlogs/list"/>'>操作记录</a></li>
		</ul>
	</div>
	<div class="h_a">搜索</div>
	<div class="search_type cc mb10">
		<form method="get" autocomplete="off">
			<label>管理员：</label><input
				name="keys" type="text" class="input length_4 mr10" value="${param.keys }"
				placeholder="管理员账户">
			<button type="submit" class="btn">搜索</button>
		</form>
	</div>
	<!-- 
	<div class="mb10">
		<a href='<yjd:url url="/adminlogin/del"/>' class="btn btn_orange J_ajax_del"
			data-msg="确定删除？" id="J_ajax_del">清除1个月之前的记录</a>
	</div>
	 -->
	
	<!-- 列表 -->
	<c:set var="hashData" value="${pager.pagerModel.dataList!=null && fn:length(pager.pagerModel.dataList)>0 }" />
	<div class="table_list">
		<table width="100%">
			<thead>
				<tr>
					<td width="50">id</td>
					<td width="150">时间</td>
					<td width="120">管理员</td>
					<td width="120">IP</td>
					<td>地址</td>
				</tr>
			</thead>
	
		<c:if test="${hashData }">
			<tbody id="J_word_list">
			<c:forEach items="${pager.pagerModel.dataList }" var="item">
				<tr>
					<td>${item.id }</td>
					<td>${item.strMap.lastlogin }</td>
					<td>${item.username }</td>
					<td>${item.ip }</td>
					<td>${item.ipdata }</td>
				</tr>
			</c:forEach>
			</tbody>
		</c:if>
		</table>
	</div>
	<!-- 分页 -->
	<%@ include file="../../public/pager/pager.pagination.jsp" %>
</div>